package cn.edu.stu.controller;

import java.util.List;

import javax.annotation.Resource;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

import cn.edu.stu.entity.UserActivity;
import cn.edu.stu.service.ActivityService;
import cn.edu.stu.service.UserActivityService;

@Controller
@RequestMapping("/useractivity.do")

public class UserActivityController {
	protected final transient Log log = LogFactory
	.getLog(ActivityController.class);
	@Autowired
	private UserActivityService userActivityService;
	public UserActivityController(){
				
	}
			
	@RequestMapping
	public String load(ModelMap modelMap){
		List<Object> list = userActivityService.getUserActivityList();
		modelMap.put("list", list);
		return "main";
	}
}
